﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace LimpaGaragem.Web.MasterPages
{
    public partial class Default : System.Web.UI.MasterPage
    {
        #region EVENTS

        protected void Page_Load(object sender, EventArgs e)
        {
            ValidateSessionUser();
        }

        #endregion

        #region METHODS

        public void ValidateSessionUser()
        {
            try
            {
                if(Session["UserLogged"] != null)
                {
                    phUserFunctions.Visible=true;
                }
                else
                {
                    phUserFunctions.Visible=false;
                }
            }
            catch(Exception ex)
            {
                //
            }
        }

        #endregion
    }
}
